package designpattern.visitor.old;

import java.util.ArrayList;
import java.util.List;

public class Client {

    public static void main(String[] args) {
        List<Consumer> consumers = new ArrayList<Consumer>();
        consumers.add(new EnterpriseConsumer());
        consumers.add(new EnterpriseConsumer());
        consumers.add(new PersonConsumer());


        consumers.stream().forEach(c -> {
            c.Request1();
            c.Request2();
            c.Request3();
        });
    }
}
